package com.paddyi.service;

import com.paddyi.model.Stock;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  (Stock)
 * @author paddy
 * @since  2019-08-09 12:00:53
 */
@Service
public interface IStockService extends IService<Stock> {

    /**
     * 下单减库存
     * @param stock
     * @return
     */
    boolean place(Stock stock);

    /**
     * 查询所有商品库存
     * @return
     */
    List<Stock> findAll();
}
